<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">

<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
    <title>赛事周边-英雄联盟周边商城</title>
    <link rel="stylesheet" href="../static/css/swb.css"/>
    <link rel="stylesheet" href="../static/css/public.css"/>
    <link rel="stylesheet" href="https://unpkg.com/swiper/css/swiper.min.css"/>
    <link rel="stylesheet" href="../static/css/ShopDetails.css">
</head>

<body>
<header sty="hi75">
    <div class="banner cf">
        <div sty="mt17" class="logo-box ftl">
            <a sty="wi297 hi39" class="logo dpib" href=""></a>
        </div>
        <div sty="hi30 mt22" class="header-right-box ftr fdl">
            {% if user.is_authenticated %}
                <div sty="mt8 mr10" class="login_btn fl">
                    欢迎您：<em>{{ user.username }}</em>
                    <span>|</span>
                    <a href="{{ url('users:logout') }}">退出</a>
                </div>
            {% else %}
                <div sty="pr20 cf">
                    <a sty="pr6 lh30" href="{{ url('users:login') }}">您好，请登录 </a>
                </div>
            {% endif %}
            <div sty="pr28 cf">
                <a href="{{ url('users:Shopping') }}">
                    <i sty="wi28 hi25 mt3 mr4" class="shop ftl"></i>
                    <span sty="lh30 pr6" class="ftl">购物车</span>
                    <span sty="wi20 hi20 lh20 mt7 " class="shop-num ftl tac">0</span>
                </a>
            </div>
            <div sty="pr28 cf">
                <i sty="wi24 hi26 mt3 mr4" class="service ftl"></i>
                <span sty="lh30" class="ftl">客服咨询</span>
            </div>
            <div sty="cf">
                <i sty="wi20 hi20 mt5 mr4" class="qr-code ftl"></i>
                <span sty="lh30" class="ftl">微信商城</span>
            </div>
        </div>
    </div>
</header>
<div class="main  bg-index">
    <div class="banner">
        <nav class="cf">
            <ul class="ftl">
                <li><a href="{{ url("index:index") }}">商城首页</a></li>
            </ul>
            <div sty="mt15 mr34" class="ftr pr cf">
                <input sty="wi239 hi30 fs14" class="ftl" type="text" onfocus="$('nav .default').hide()"
                       onblur="if (this.value == '') { $('nav .default').show() } else { $('nav .default').hide() }"/>
                <a sty="tp9 lt10 fs14" class="default pa" href="">阿狸</a>
                <div sty="wi45 hi30" class="search-btn ftl">
                    <a href="">
                        <i sty="wi21 hi21 mt5 ml12" class="dpib"></i>
                    </a>
                </div>
            </div>
        </nav>

        <div sty="pl20 fs16 lh40" class="crumbs">
            <a href="Index.html">首页商城</a>
            <span sty="ml10 mr10">\</span>
            <a href="./PlushDolls.html">赛事周边</a>
            <span sty="ml10 mr10">\</span>
            <a href="{{ url('goods:shop_details',kwargs = {'good_id':good_detial.id}) }}">{{ good_detial.name }}</a>
        </div>
        <form method="post" action="/Shopping/">
            <div sty="pb100" class="fdl bgcfff">
                <div sty="wi700" class="details-images cf">
                    <ul sty="wi100" class="ftl">
                        <li><img  id="front_image" src="{{ good_detial.front_image }}" alt=""></li>
                    </ul>
                    <div sty="ml20 wi520" class="ftl"><img src="{{ good_detial.front_image }}" alt=""></div>
                </div>
                <div sty="wi500 pl0" class="details-parameter">
                    <div id="name">
                        <h2 >{{ good_detial.name }}</h2>
                    </div>
                    <div>现价：<span id="now_price" sty="fs40" class="fw7 details-parameter-price">{{ good_detial.current_price }}</span>
                    </div>
                    <div>
                        <ul class="flex">
                            <li class="tal">最近销量(销量只是指本月的月初到月末的合计) <span sty="ml10">{{ good_detial.sales }}</span></li>

                        </ul>
                    </div>
                    <div class="details-parameter-specification">
{#                        <div>颜色：<span class="select">彩色</span></div>#}
{#                        <div>尺码：<span class="select">均码</span></div>#}
                        <div class="cf">
                            <div class="ftl">数量：</div>
                            <div sty="ml10 mt7" class="stepper ftl cf">
                                <span id="jian" class="stepper-left">-</span>
                                <input id="number" sty="wi40 hi35" class="stepper-num ftl tac" type="text" value="1">
                                <span id="jia" class="stepper-right">+</span>
                            </div>
                            <div class="ftl">（还剩：<span id="slave" class="residue fw7">{{ good_detial.slave }}</span>件）</div>
                        </div>
                        <div>
                            <div></div>
                        </div>
                    </div>

                    <div><input type="button" id="shop" value="添加购物车" sty="lh50 wi160 fs22 ml40" class="purchase dpib tac" name="{{ good_detial.id }}"></div>

        </form>
        <div class="welfare ">
            <ul class="flex">
                <li class="welfare-i1"><i></i><span>7天无理由退换货</span></li>
                <li class="welfare-i2"><i></i><span>100%官方正品</span></li>
                <li class="welfare-i3"><i></i><span>全场每单满199元包邮</span></li>
            </ul>
        </div>
    </div>
</div>
<footer>
    <div sty="pt20 pb20" class="guarantee banner">
        <ul class="flex">
            <li>
                <i class="sales-return"></i>
                <span>7天无理由退换货</span>
            </li>
            <li>
                <i class="quality-goods"></i>
                <span>100%官方正品</span>
            </li>
            <li>
                <i class="pinkage"></i>
                <span>全场每单满199元包邮</span>
            </li>
        </ul>
    </div>
    <div class="issue">
        <div class="banner">
            <ul class="flex tac">
                <li>
                    <dl>
                        <dt>购物指南</dt>
                        <dd>帐号注册与登录</dd>
                        <dd>购买流程介绍</dd>
                        <dd>支付方式</dd>
                        <dd>常见问题</dd>
                    </dl>
                </li>
                <li>
                    <dl>
                        <dt>配送服务</dt>
                        <dd>全场满199元免运费</dd>
                        <dd>配送范围及运费</dd>
                        <dd>配送进度查询</dd>
                    </dl>
                </li>
                <li>
                    <dl>
                        <dt>售后服务</dt>
                        <dd>7天无理由退换货</dd>
                        <dd>退换货流程</dd>
                        <dd>商品送错的处理方案</dd>
                        <dd>售后服务及投诉</dd>
                    </dl>
                </li>
                <li>
                    <dl>
                        <dt>服务中心</dt>
                        <dd>售前咨询 售后咨询</dd>
                        <dd>客服热线：0755-25727866</dd>
                        <dd>售后：service@lolriotmall.qq.com</dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <div sty="mt25 lh40" class="copy tac">技术支持：全栈12 师文博</div>
</footer>
</body>
<script src="../static/js/jquery.js"></script>
<script src="../static/js/swb.js"></script>
<script src="../static/js/public.js"></script>
<script src="../static/js/ShopDetails.js"></script>

<!-- Swiper JS -->
<script src="https://unpkg.com/swiper/js/swiper.min.js"></script>
<!-- Initialize Swiper -->
<script>
    var menuButton = document.querySelector('.menu-button');
    var openMenu = function () {
        swiper.slidePrev();
    };
    var swiper = new Swiper('.swiper-container', {
        grabCursor: true,
        slidesPerView: 'auto',
        initialSlide: 1,
        resistanceRatio: 0,
        slideToClickedSlide: true,
        on: {
            slideChangeTransitionStart: function () {
                var slider = this;
                if (slider.activeIndex === 0) {
                    menuButton.classList.add('cross');
                    // required because of slideToClickedSlide
                    menuButton.removeEventListener('click', openMenu, true);
                } else {
                    menuButton.classList.remove('cross');
                }
            }
            , slideChangeTransitionEnd: function () {
                var slider = this;
                if (slider.activeIndex === 1) {
                    menuButton.addEventListener('click', openMenu, true);
                }
            },
        }
    });
</script>

</html>